import {
  createRouter,
  createWebHistory,
  createWebHashHistory,
} from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      name: "Home",
      component: () => import("@/views/Home.vue"),
    },
    {
      path: "/recharge",
      name: "Recharge",
      component: () => import("@/views/Recharge.vue"),
    },
    {
      path: "/withdraw",
      name: "Withdraw",
      component: () => import("@/views/Withdraw.vue"),
    },
  ],
  scrollBehavior: (): { left: number; top: number } => ({ left: 0, top: 0 }),
});

export default router;
